chore(deps): update driver adapters directory (minor) #4843
+12
−12
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
4.20240405.0
->4.20240614.0
0.64.20
->0.67.23
20.12.7
->20.14.2
0.20.2
->0.21.5
5.1.1
->5.2.0
8.0.2
->8.1.0
4.7.2
->4.15.5
6.13.0
->6.19.0
3.50.0
->3.60.3
Release Notes
cloudflare/workerd (@cloudflare/workers-types)
v4.20240614.0
Compare Source
v4.20240605.0
Compare Source
v4.20240603.0
Compare Source
v4.20240529.0
Compare Source
v4.20240524.0
Compare Source
v4.20240512.0
Compare Source
v4.20240502.0
Compare Source
v4.20240423.0
Compare Source
v4.20240419.0
Compare Source
Effect-TS/effect (@effect/schema)
v0.67.23
Compare Source
Patch Changes
#2991
2ee4f2b
Thanks @gcanti! - RemoveSimplify
fromextend
,pick
,omit
,pluck
APIs, closes #2989, #2990#2971
9b3b4ac
Thanks @gcanti! - AddSchema.NonEmptyChunkFromSelf
andSchema.NonEmptyChunk
, closes #2961Updated dependencies [
3572646
,1aed347
,df4bf4b
,f085f92
]:v0.67.22
Compare Source
Patch Changes
#2955
d79ca17
Thanks @gcanti! - TheminItems
filter now checks for an invalid argument (n < 1
) and, when valid, refines the type toNonEmptyReadonlyArray<A>
.Updated dependencies [
eb98c5b
,184fed8
,6068e07
,3a77e20
]:v0.67.21
Compare Source
Patch Changes
67f160a
Thanks @KhraksMamtsov! - Added two related schemasRedacted
andRedactedFromSelf
Secret
andSecretFromSelf
marked as deprecated1f4ac00
,9305b76
,0f40d98
,b761ef0
,b53f69b
,0f40d98
,5bd549e
,67f160a
]:v0.67.20
Compare Source
Patch Changes
#2926
4c6bc7f
Thanks @gcanti! - AddpropertyOrder
option toParseOptions
to control the order of keys in the output, closes #2925.The
propertyOrder
option provides control over the order of object fields in the output. This feature is particularly useful when the sequence of keys is important for the consuming processes or when maintaining the input order enhances readability and usability.By default, the
propertyOrder
option is set to"none"
. This means that the internal system decides the order of keys to optimize parsing speed. The order of keys in this mode should not be considered stable, and it's recommended not to rely on key ordering as it may change in future updates without notice.Setting
propertyOrder
to"input"
ensures that the keys are ordered as they appear in the input during the decoding/encoding process.Example (Synchronous Decoding)
Example (Asynchronous Decoding)
v0.67.19
Compare Source
Patch Changes
#2916
cd7496b
Thanks @gcanti! - Add support forAST.Literal
inSchema.TemplateLiteral
, closes #2913#2915
349a036
Thanks @gcanti! - Align constructors arguments:Class
interface to accept options for disabling validationTypeLiteral
interface to accept options for disabling validationrefine
interface to accept options for disabling validationBrandSchema
interface to accept options for disabling validationExample
Updated dependencies [
8c5d280
,6ba6d26
,3f28bf2
,5817820
]:v0.67.18
Compare Source
Patch Changes
a0dd1c1
Thanks @gcanti! - TemplateLiteral: fix bug related to ${number} span, closes #2907v0.67.17
Compare Source
Patch Changes
#2892
d9d22e7
Thanks @gcanti! - SchemapropertySignature
API interface (with afrom
property)optional
API interface with afrom
propertyoptionalWithOptions
API interface with afrom
property#2901
3c080f7
Thanks @gcanti! - make theAST.TemplateLiteral
constructor public#2901
3c080f7
Thanks @gcanti! - add support for string literals toSchema.TemplateLiteral
andTemplateLiteral
API interface.Before
Now
#2905
7d6d875
Thanks @gcanti! - add support for unions torename
, closes #2904#2897
70cda70
Thanks @gcanti! - AddencodedBoundSchema
API.The
encodedBoundSchema
function is similar toencodedSchema
but preserves the refinements up to the first transformation point in theoriginal schema.
Function Signature:
The term "bound" in this context refers to the boundary up to which refinements are preserved when extracting the encoded form of a schema. It essentially marks the limit to which initial validations and structure are maintained before any transformations are applied.
Example Usage:
In the provided example:
foo
includes a refinement to ensure strings have a minimum length of three characters and a transformation to trim the string.resultingEncodedBoundSchema
maintains theminLength(3)
condition, ensuring that this validation persists. However, it excludes the trimming transformation, focusing solely on the length requirement without altering the string's formatting.Updated dependencies [
fb91f17
]:v0.67.16
Compare Source
Patch Changes
#2890
5745886
Thanks @gcanti! - Fix constructor type inference for classes with all optional fields, closes #2888This fix addresses an issue where TypeScript incorrectly inferred the constructor parameter type as an empty object {} when all class fields were optional. Now, the constructor properly recognizes arguments as objects with optional fields (e.g., { abc?: number, xyz?: number }).
Updated dependencies [
6801fca
]:v0.67.15
Compare Source
Patch Changes
#2882
e2740fc
Thanks @gcanti! - addrequiredToOptional
function toSchema
module, closes #2881#2880
60fe3d5
Thanks @gcanti! - add missingmakePropertySignature
constructorUpdated dependencies [
cc8ac50
]:v0.67.14
Patch Changes
#2851
c5846e9
Thanks @gcanti! - Addtag
andTaggedStruct
constructors.In TypeScript tags help to enhance type discrimination and pattern matching by providing a simple yet powerful way to define and recognize different data types.
What is a Tag?
A tag is a literal value added to data structures, commonly used in structs, to distinguish between various object types or variants within tagged unions. This literal acts as a discriminator, making it easier to handle and process different types of data correctly and efficiently.
Using the
tag
ConstructorThe
tag
constructor is specifically designed to create a property signature that holds a specific literal value, serving as the discriminator for object types. Here's how you can define a schema with a tag:In the example above,
Schema.tag("User")
attaches a_tag
property to theUser
struct schema, effectively labeling objects of this struct type as "User". This label is automatically applied when using themake
method to create new instances, simplifying object creation and ensuring consistent tagging.Simplifying Tagged Structs with
TaggedStruct
The
TaggedStruct
constructor streamlines the process of creating tagged structs by directly integrating the tag into the struct definition. This method provides a clearer and more declarative approach to building data structures with embedded discriminators.Multiple Tags
While a primary tag is often sufficient, TypeScript allows you to define multiple tags for more complex data structuring needs. Here's an example demonstrating the use of multiple tags within a single struct:
This example showcases a product schema that not only categorizes each product under a general tag (
"Product"
) but also specifies a category tag ("Electronics"
), enhancing the clarity and specificity of the data model.v0.67.13
Patch Changes
608b01f
,031c712
,a44e532
]:v0.67.12
Compare Source
Patch Changes
#2814
f8038ca
Thanks @gcanti! - Add support for Enums in Record, closes #2811#2816
e376641
Thanks @gcanti! - Add support forConfig
module, closes #2346Updated dependencies [
1af94df
,e313a01
]:v0.67.11
Compare Source
Patch Changes
#2803
5af633e
Thanks @tim-smart! - update dependenciesUpdated dependencies [
45578e8
]:v0.67.10
Compare Source
Patch Changes
#2794
78ffc27
Thanks @gcanti! - addoptional
andoptionalWithOptions
API interfacesUpdated dependencies [
5d9266e
,9f8122e
,6a6f670
]:v0.67.9
Compare Source
Patch Changes
5432fff
Thanks @KhraksMamtsov! - fixpattern
in JSONSchemaAnnotation ofTrimmed
schemav0.67.8
Compare Source
Patch Changes
c1e991d
]:v0.67.7
Compare Source
Patch Changes
146cadd
,7135748
,7135748
,963b4e7
,64c9414
,7135748
,2cbb76b
,870c5fa
,7135748
,64c9414
]:v0.67.6
Compare Source
Patch Changes
#2772
17da864
Thanks @vinassefranche! - Add onNoneEncoding for Schema.optional used with {as: "Option"}#2769
ff0efa0
Thanks @TylorS! - Point-free usage of Schema.make constructorsUpdated dependencies [
17fc22e
,810f222
,596aaea
]:v0.67.5
Compare Source
Patch Changes
9c514de
Thanks @fubhy! - Re-publishing due to empty root entrypointv0.67.4
Compare Source
Patch Changes
#2756
ee08593
Thanks @gcanti! - Improving Predicate Usability ofSchema.is
Before this update, the
Schema.is(mySchema)
function couldn't be easily used as a predicate or refinement in common array methods likefilter
orfind
. This was because the function's signature was:Meanwhile, the function expected by methods like
filter
has the following signature:To make
Schema.is
compatible with these array methods, we've adjusted the function's signature to acceptnumber
as a possible value for the second parameter, in which case it is ignored:Here's a practical example comparing the behavior before and after the change:
Before:
Now:
Note that the result has been correctly narrowed to
string[]
.#2746
da6d7d8
Thanks @gcanti! -pick
: do not return aComposeTransformation
if none of the picked keys are related to a property signature transformation, closes #2743v0.67.3
Compare Source
Patch Changes
6ac4847
]:v0.67.2
Compare Source
Patch Changes
#2738
89a3afb
Thanks @gcanti! - addcause
in errors thrown byasserts
, closes #2729#2741
992c8e2
Thanks @gcanti! -Schema.optional
: thedefault
option now allows setting a default value for both the decoding phase and the default constructor. Previously, it only set the decoding default. Closes #2740.Example
v0.67.1
Compare Source
Patch Changes
#2890
5745886
Thanks @gcanti! - Fix constructor type inference for classes with all optional fields, closes #2888This fix addresses an issue where TypeScript incorrectly inferred the constructor parameter type as an empty object {} when all class fields were optional. Now, the constructor properly recognizes arguments as objects with optional fields (e.g., { abc?: number, xyz?: number }).
Updated dependencies [
6801fca
]:v0.67.0
Compare Source
Minor Changes
#2634
d7e4997
Thanks @gcanti! - ## Simplifying Type ExtractionWhen we work with schemas, it's common to need to extract their types automatically.
To make this easier, we've made some changes to the
Schema
interface.Now, you can easily access
Type
andEncoded
directly from a schema without the need forSchema.Schema.Type
andSchema.Schema.Encoded
.v0.66.16
Compare Source
Patch Changes
1f6dc96
]:v0.66.15
Compare Source
Patch Changes
121d6d9
Thanks @gcanti! - Class API: avoid access before initialization when creating a class with suspended props, closes #2709v0.66.14
Compare Source
Patch Changes
#2679
2e1cdf6
Thanks @tim-smart! - ensure all type ids are annotated withunique symbol
Updated dependencies [
2e1cdf6
]:v0.66.13
Compare Source
Patch Changes
e5e56d1
]:v0.66.12
Compare Source
Patch Changes
c3c12c6
,ba64ea6
,b5de2d2
,a1c7ab8
,a023f28
,1c9454d
,92d56db
]:v0.66.11
Compare Source
Patch Changes
#2656
557707b
Thanks @tim-smart! - update dependenciesUpdated dependencies [
557707b
,f4ed306
,661004f
,e79cb83
]:v0.66.10
Compare Source
Patch Changes
18de56b
]:v0.66.9
Compare Source
Patch Changes
#2626
027418e
Thanks @fubhy! - Reintroduce customNoInfer
type#2631
8206529
Thanks @gcanti! - add support for data-last subtype overloads incompose
Before
Now
Updated dependencies [
ffe4f4e
,027418e
,ac1898e
,ffe4f4e
]:v0.66.8
Compare Source
Patch Changes
6222404
,868ed2a
]:v0.66.7
Compare Source
Patch Changes
#2595
dd41c6c
Thanks @gcanti! - Remove excessive constraint from the pipeable overload ofattachPropertySignature
, closes #2593Updated dependencies [
9a24667
]:v0.66.6
Compare Source
Patch Changes
#2586
9dfc156
Thanks @gcanti! - remove non-tree-shakable compiler dependencies from the Schema module:Arbitrary
compilerEquivalence
compilerPretty
compiler#2583
80271bd
Thanks @suddenlyGiovanni! - - Fixed a typo in the JSDoc comment of theBooleanFromUnknown
boolean constructors inSchema.ts
split
string transformations combinator inSchema.ts
#2585
e4ba97d
Thanks @gcanti! - JSONSchema: rearrange handling of surrogate annotations to occur after JSON schema annotationsv0.66.5
Compare Source
Patch Changes
#2582
b3fe829
Thanks @gcanti! - Add default title annotations to both sides of Struct transformations.This simple addition helps make error messages shorter and more understandable.
Before
Now
#2581
a58b7de
Thanks @gcanti! - Fix formatting for Class and brands AST.#2579
d90e8c3
Thanks @gcanti! - Schema: JSONSchema should support make(Class)Before
Now
v0.66.4
Compare Source
Patch Changes
#2577
773b8e0
Thanks @gcanti! - partial / required: add support for renaming property keys in property signature transformationsBefore
Now
v0.66.3
Compare Source
Patch Changes
a7b4b84
]:v0.66.2
Compare Source
Patch Changes
#2562
2cecdbd
Thanks @fubhy! - Added provenance publishingUpdated dependencies [
2cecdbd
]:v0.66.1
Compare Source
Patch Changes
1f6dc96
]:[
v0.66.0
](https://togithub.com/Effect-TS/effect/blob/HEAD/packages/schema/CHANGELOG.md#06Configuration
📅 Schedule: Branch creation - "every weekend" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Mend Renovate. View repository job log here.